﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="Gpp.aspx.cs" Inherits="Gpp" Title="Gpp List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Gpp List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="GppDataSource"
				DataKeyNames="Id"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_Gpp.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="I1InputDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="I1 Input Date" SortExpression="I1InputDate"  />
				<asp:BoundField DataField="I2KhiAm" HeaderText="I2 Khi Am" SortExpression="I2KhiAm"  />
				<asp:BoundField DataField="I3Cond" HeaderText="I3 Cond" SortExpression="I3Cond"  />
				<asp:BoundField DataField="I4pCcp" HeaderText="I4p Ccp" SortExpression="I4P_CCP"  />
				<asp:BoundField DataField="I6Pi0101" HeaderText="I6 Pi0101" SortExpression="I6PI0101"  />
				<asp:BoundField DataField="I7Fiq0401" HeaderText="I7 Fiq0401" SortExpression="I7FIQ0401"  />
				<asp:BoundField DataField="I8Fiq0301" HeaderText="I8 Fiq0301" SortExpression="I8FIQ0301"  />
				<asp:BoundField DataField="I9Fiq0302" HeaderText="I9 Fiq0302" SortExpression="I9FIQ0302"  />
				<asp:BoundField DataField="I10Fi102ByPass" HeaderText="I10 Fi102 By Pass" SortExpression="I10FI102ByPass"  />
				<asp:BoundField DataField="I11Fiq26010h" HeaderText="I11 Fiq26010h" SortExpression="I11FIQ2601_0h"  />
				<asp:BoundField DataField="I12Fiq260124h" HeaderText="I12 Fiq260124h" SortExpression="I12FIQ2601_24h"  />
				<asp:BoundField DataField="I13Fiq2601Da" HeaderText="I13 Fiq2601 Da" SortExpression="I13FIQ2601_DA"  />
				<asp:BoundField DataField="I14Fiq26020h" HeaderText="I14 Fiq26020h" SortExpression="I14FIQ2602_0h"  />
				<asp:BoundField DataField="I15Fiq260224h" HeaderText="I15 Fiq260224h" SortExpression="I15FIQ2602_24h"  />
				<asp:BoundField DataField="I16Fiq2602Da" HeaderText="I16 Fiq2602 Da" SortExpression="I16FIQ2602_DA"  />
				<asp:BoundField DataField="I17Fiq26030h" HeaderText="I17 Fiq26030h" SortExpression="I17FIQ2603_0h"  />
				<asp:BoundField DataField="I18Fiq260324h" HeaderText="I18 Fiq260324h" SortExpression="I18FIQ2603_24h"  />
				<asp:BoundField DataField="I19Fiq2603Da" HeaderText="I19 Fiq2603 Da" SortExpression="I19FIQ2603_DA"  />
				<asp:BoundField DataField="I20XeBon" HeaderText="I20 Xe Bon" SortExpression="I20XeBon"  />
				<asp:BoundField DataField="I21Fiq2402" HeaderText="I21 Fiq2402" SortExpression="I21FIQ2402"  />
				<asp:BoundField DataField="I22Me240h" HeaderText="I22 Me240h" SortExpression="I22ME24_0h"  />
				<asp:BoundField DataField="I23Me2424h" HeaderText="I23 Me2424h" SortExpression="I23ME24_24h"  />
				<asp:BoundField DataField="I24TenMeCondBh" HeaderText="I24 Ten Me Cond Bh" SortExpression="I24TenMeCondBH"  />
				<asp:BoundField DataField="I25Me250h" HeaderText="I25 Me250h" SortExpression="I25ME25_0h"  />
				<asp:BoundField DataField="I26Me2524h" HeaderText="I26 Me2524h" SortExpression="I26ME25_24h"  />
				<asp:BoundField DataField="I27Me260h" HeaderText="I27 Me260h" SortExpression="I27ME26_0h"  />
				<asp:BoundField DataField="I28Me2624h" HeaderText="I28 Me2624h" SortExpression="I28ME26_24h"  />
				<asp:BoundField DataField="I29KctvNhanLpg" HeaderText="I29 Kctv Nhan Lpg" SortExpression="I29KCTV_nhan_LPG"  />
				<asp:BoundField DataField="I30KctvNhanCond" HeaderText="I30 Kctv Nhan Cond" SortExpression="I30KCTV_nhan_Cond"  />
				<asp:BoundField DataField="I31ApSuat" HeaderText="I31 Ap Suat" SortExpression="I31ApSuat"  />
				<asp:BoundField DataField="I32Me13a" HeaderText="I32 Me13a" SortExpression="I32ME13A"  />
				<asp:BoundField DataField="I33Me13b" HeaderText="I33 Me13b" SortExpression="I33ME13B"  />
				<asp:BoundField DataField="I34Fiq5801" HeaderText="I34 Fiq5801" SortExpression="I34FIQ5801"  />
				<asp:BoundField DataField="I35v21aMucBon" HeaderText="I35v21a Muc Bon" SortExpression="I35V21A_MucBon"  />
				<asp:BoundField DataField="I36v21bMucBon" HeaderText="I36v21b Muc Bon" SortExpression="I36V21B_MucBon"  />
				<asp:BoundField DataField="I37v21cMucBon" HeaderText="I37v21c Muc Bon" SortExpression="I37V21C_MucBon"  />
				<asp:BoundField DataField="I38Tk21MucBon" HeaderText="I38 Tk21 Muc Bon" SortExpression="I38TK21_MucBon"  />
				<asp:BoundField DataField="I109NoteBcn" HeaderText="I109 Note Bcn" SortExpression="I109NoteBCN"  />
				<asp:BoundField DataField="I110NoteSplbh" HeaderText="I110 Note Splbh" SortExpression="I110NoteSPLBH"  />
				<asp:BoundField DataField="I111NoteMeCondBh" HeaderText="I111 Note Me Cond Bh" SortExpression="I111NoteMeCondBH"  />
				<asp:BoundField DataField="I112NoteMeCondNcs" HeaderText="I112 Note Me Cond Ncs" SortExpression="I112NoteMeCondNCS"  />
				<data:HyperLinkField HeaderText="Status" DataNavigateUrlFormatString="StatusEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="StatusSource" DataTextField="Name" />
				<data:HyperLinkField HeaderText="Input User" DataNavigateUrlFormatString="UserEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="InputUserSource" DataTextField="Username" />
				<data:HyperLinkField HeaderText="Hid" DataNavigateUrlFormatString="GppEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="HidSource" DataTextField="I1InputDate" />
				<asp:BoundField DataField="CreatedDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Created Date" SortExpression="CreatedDate"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No Gpp Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnGpp" OnClientClick="javascript:location.href='GppEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:GppDataSource ID="GppDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:GppProperty Name="Status"/> 
					<data:GppProperty Name="Gpp"/> 
					<data:GppProperty Name="User"/> 
					<%--<data:GppProperty Name="GppCollection" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:GppDataSource>
	    		
</asp:Content>



